package nc.ui.ct.ct0204;


import nc.ui.pub.ButtonObject;
import nc.ui.pub.ToftPanel;
import nc.ui.pub.bill.BillCardPanel;
import nc.ui.pub.bill.BillEditEvent;
import nc.ui.pub.bill.BillListPanel;
import nc.ui.querytemplate.QueryConditionDLG;
import nc.ui.scm.plugin.IUIPluginToftPanel;
import nc.ui.scm.plugin.UIPluginFactory;
import nc.vo.pub.AggregatedValueObject;
import nc.vo.pub.BusinessException;

public class CtPluginIn implements IUIPluginToftPanel {
	private ClientUI ctUI;
	
	
	public ClientUI getCtUI() {
		return ctUI;
	}
	public void setCtUI(ClientUI ctUI) {
		this.ctUI = ctUI;
	}
	public CtPluginIn(ClientUI ctUI){
		this.ctUI=ctUI;
	}
	public void callAfterEdit(BillEditEvent e) {
		getCtUI().afterEdit(e);
	}

	public void callOnButtonClicked(ButtonObject bo) {
		getCtUI().onButtonClicked(bo);
	}

	public ButtonObject getButton(String btncode) {
		return UIPluginFactory.getIntance().findButtonObject(getCtUI().getButtons(),btncode);
	}
	
	public QueryConditionDLG getQueryDlg(BillEditEvent e) {
		return null;
	}

	public ToftPanel getToftPanel() {
		return getCtUI();
	}

	public int getUIOperateState() {
		return 0;
	}

	public int getUIShowState() {
		return 0;
	}

	public void onAddNewBillToUI(String biztype, AggregatedValueObject[] billvos)
			throws BusinessException {

	}

	public void setBillVOsToUI(AggregatedValueObject[] billvos) {

	}
	
	public BillCardPanel getCardPanel() {
		// TODO Auto-generated method stub
		return null;
	}
	
	public BillListPanel getListPanel() {
		// TODO Auto-generated method stub
		return null;
	}

}
